package com.earthea.application.web.controller.system;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 首页
 */
@Controller
public class SysIndexController {

    /**
     * 访问首页，解决vue打包到resource下访问前端路由404问题
     */
    @RequestMapping(value = {"/{path:[^\\.]*}", "/{path:^(?!rest$).*$}/**/{subpath:[^\\.]*}"})
    public String index() {
        return "forward:/index.html";
    }
}
